/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.informet.ipd.struts.form;

import java.util.ArrayList;
import java.util.List;
import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionMessage;

/**
 *
 * @author LAPTOP01
 */
public class OEstrategicoForm extends org.apache.struts.action.ActionForm {

    private int codObj;
    private int idObj;
    private String descObj;
    private List listaOEstrategico = new ArrayList();
    private String opcion;

    public OEstrategicoForm() {
        super();
        // TODO Auto-generated constructor stub

    }

    /**
     * @return the codObj
     */
    public int getCodObj() {
        return codObj;
    }

    /**
     * @param codObj the codObj to set
     */
    public void setCodObj(int codObj) {
        this.codObj = codObj;
    }

    /**
     * @return the descObj
     */
    public String getDescObj() {
        return descObj;
    }

    /**
     * @param descObj the descObj to set
     */
    public void setDescObj(String descObj) {
        this.descObj = descObj;
    }

    /**
     * @return the listaEstrategico
     */
    public List getListaOEstrategico() {
        return listaOEstrategico;
    }

    /**
     * @param listaEstrategico the listaEstrategico to set
     */
    public void setListaOEstrategico(List listaOEstrategico) {
        this.listaOEstrategico = listaOEstrategico;
    }

    /**
     * @return the opcion
     */
    public String getOpcion() {
        return opcion;
    }

    /**
     * @param opcion the opcion to set
     */
    public void setOpcion(String opcion) {
        this.opcion = opcion;
    }

    /**
     * @return the idObj
     */
    public int getIdObj() {
        return idObj;
    }

    /**
     * @param idObj the idObj to set
     */
    public void setIdObj(int idObj) {
        this.idObj = idObj;
    }
    /**
     * This is the action called from the Struts framework.
     * @param mapping The ActionMapping used to select this instance.
     * @param request The HTTP Request we are processing.
     * @return
     */
//    public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) {
//        ActionErrors errors = new ActionErrors();
//        if (getName() == null || getName().length() < 1) {
//            errors.add("name", new ActionMessage("error.name.required"));
//            // TODO: add 'error.name.required' key to your resources
//        }
//        return errors;
//    }
}
